import Qt 4.7

//change to item
Rectangle {
    id: summaryPage_
    property variant model
    anchors.fill: parent
     width: 200; height: 200
     visible:false

     Text {
         anchors.fill: parent
         anchors.topMargin: 100
         anchors.leftMargin: 50
         text: "You finished the dialog!"; font.weight: Font.DemiBold }

     ListModel{

         id:summary_
     }
/*
     Component {

         id: summary_Delegate


         Row {
             spacing: 200
             Row{
             Text {
                 width: 450
                 text: "Question: "+ question }
             Text {
                 width: 150
                 text: "Author's Rating: " +authorRating }

             Text {
                 width: 200
                 text: "User's Rating:  " + summaryPage_.model.rating(index)}

         }
         }
     }
     ListView {
         anchors.fill: parent
         anchors.verticalCenter: parent.verticalCenter
        anchors.topMargin: 150
        anchors.leftMargin: 50
         model: parent.model
         delegate: summary_Delegate
     }

     Button {
         id: buttonBack
         anchors.bottom: parent.bottom
         anchors.right: parent.right
         anchors.rightMargin: 5
         text: "Categories"
         onClicked: {
             window.state = "showDialogs";
         }

     }
*/
     Button{
         id:backButton
         anchors.bottom: parent.bottom
         anchors.right: parent.right
         anchors.rightMargin: 5
         text: "Next question"
         onClicked:{
             parent.visible = false
         }
     }

 }
